MIME Type List
The GraphicsImportGetMIMETypeList function returns a list of the MIME types supported by a graphics importer component. This list is contained in the QT atom container described in this section. For more information about QT atom containers, see "Movie Toolbox: Fundamentals."
At the top level of the atom container are three atoms for each supported MIME type. The atoms whose IDs are 1 describe the first supported MIME type, the atoms whose IDs are 2 describe the second supported MIME type, and so on.
-
An atom of type
kMimeInfoMimeTypeTag
contains a string that identifies the MIME type, such as
image/jpeg
or
image/x-jpeg
.
-
The atom of type
kMimeInfoFileExtensionTag
contains a string that specifies likely file extensions for files of this MIME type, such as
jpg
,
jpe
, and
jpeg
. If there is more than one extension, the extensions are separated by commas.
-
The atom of type
kMimeInfoDescriptionTag
contains a string describing the MIME type for end users, such as
JPEG Image
.
Figure 17-1
illustrates a MIME type list.
Figure 1
A MIME type list
© 1997 Apple Computer, Inc.Previous | Chapter Top | Chapter Contents | Next